home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.internetmci.com!iol!usenet
- From: David Byrden <Goyra@iol.ie>
- Newsgroups: comp.lang.c++
- Subject: Re: Assignment op. for an object with reference member
- Date: 4 Apr 1996 18:19:23 GMT
- Organization: Ireland On-Line
- Message-ID: <4k13rb$gkh@nuacht.iol.ie>
- References: <3163FE18.28D@dbsoftware.com>
- NNTP-Posting-Host: dialup-209.dublin.iol.ie
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22KIT (Windows; I; 16bit)
-
- Guru Chandar <GCHAN@dbsoftware.com> wrote:
-
- >I have two questions:
- >
- >1. Is it legel to even attempt to change a reference after it is initialized?
-
-
- No. You are not allowed to change it.
-
-
- >
- >2. is the code given above, especially the
- > syntax to invoke the copy constructor explicitly on an object:
- >
- > this->B::B(src);
- >
- > valid? Is it supported in the standard?
-
-
- No.
-
-
- You should use a pointer, because you want to change it.
-
-
- David
-
-
-